package com.zhang.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户实体类
 */
@Data
@NoArgsConstructor
public class UserBean {
    /**用户Id*/
    private int userId;
    /**用户名*/
    private String username;
    /**用户密码*/
    private String pwd = "000000";
    /**用户等级*/
    private String grade;

    public UserBean(String username, String grade) {
        this.username = username;
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", pwd='" + pwd + '\'' +
                ", grade='" + grade + '\'' +
                '}' +"\n";
    }
}
